package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicCode;
import cn.stylefeng.guns.modular.basic.model.params.BasicCodeParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCodeResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 通用编码 服务类
 * </p>
 *
 * @author zhucx
 * @since 2022-12-23
 */
public interface BasicCodeService extends IService<BasicCode> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-12-23
     */
    void add(BasicCodeParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-12-23
     */
    void delete(BasicCodeParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-12-23
     */
    void update(BasicCodeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-23
     */
    BasicCodeResult findBySpec(BasicCodeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-23
     */
    List<BasicCodeResult> findListBySpec(BasicCodeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-23
     */
     LayuiPageInfo findPageBySpec(BasicCodeParam param,String condition);

	List<ZTreeNode> tree(BasicCodeParam basicCodeParam);

	List<BasicCodeResult> likePids(Integer id);

}
